package com.mydesignpattern.beijing.proxy.staticproxy;

/**
 * 日志代理
 * Created by Administrator on 2017/5/16 0016.
 */
public class LogProxy implements Person{

    private Person person;

    public LogProxy(Person person){
        this.person = person;
    }

    @Override
    public void say() {
        System.out.println("说话前日志");
        person.say();
        System.out.println("说话后日志");
    }


    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }
}
